package view.panel;

import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class MenuRightPanel extends JPanel {
	
	JTextField jfieldFromYear, jfieldFromMonth, jfieldFromDay,
	jfieldToYear, jfieldToMonth, jfieldToDay,
	jfieldMenu1,jfieldMenu2,jfieldMenu3, jfieldMenu4, jfieldMenu5;

	JButton jbtnSalesInfo;

	JLabel jlabelYear, jlabelMonth, jlabelDay,
	jlabelMenu1, jlabelMenu2, jlabelMenu3, jlabelMenu4, jlabelMenu5, jlabelGap;
	
	SubMenuPanel subMenu;

	public MenuRightPanel() {
	
		setLayout(new FlowLayout());
		setSize(300,400);
		setVisible(true);
	
		jbtnSalesInfo = new JButton("매출정보");
				
		jlabelYear = new JLabel("년");
		jlabelMonth = new JLabel("월");
		jlabelDay = new JLabel("일");
		jlabelGap = new JLabel("~");
		
		jlabelMenu1 = new JLabel("김밥");
		jlabelMenu2 = new JLabel("떡볶이");
		jlabelMenu3 = new JLabel("순대");
		jlabelMenu4 = new JLabel("오뎅");
		jlabelMenu5 = new JLabel("튀김");


		jfieldFromYear = new JTextField(4);
		jfieldFromMonth = new JTextField(4);
		jfieldFromDay = new JTextField(4);
		jfieldToYear = new JTextField(4);
		jfieldToMonth = new JTextField(4);
		jfieldToDay = new JTextField(4);
		
		jfieldMenu1 = new JTextField(12);
		jfieldMenu2 = new JTextField(12);
		jfieldMenu3 = new JTextField(12);
		jfieldMenu4 = new JTextField(12);
		jfieldMenu5 = new JTextField(12);

		add(jbtnSalesInfo);
	
		add(jlabelYear);
		add(jlabelMonth);
		add(jlabelDay);
		
		add(jfieldFromYear);	
		add(jfieldFromMonth);
		add(jfieldFromDay);
		
		add(jlabelGap);
		
		add(jfieldToYear);
		add(jfieldToMonth);		
		add(jfieldToDay);
		
		subMenu = new SubMenuPanel();
		
		add(subMenu);
	}

}
